package com.tenton.entity;

import com.tenton.annotation.ObjectEnable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @ClassName：Teacher
 * @Description：
 * @Author：tangdong
 * @Date：2022/10/23 20:19
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "教师类Vo")
@XmlRootElement(name = "Teacher")
@XmlAccessorType(XmlAccessType.FIELD)
public class Teacher {
    @ApiModelProperty("Id")
    @XmlElement(name = "Id")
    private Integer id;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("班级")
    private Integer classNo;
    @ApiModelProperty("学生")
    @ObjectEnable
    private Student student;
}
